import request from '@/utils/request'

// 新增人数
export function statisticsAdditional(query) {
  return request({
    url: '/ord/statistics/additional',
    method: 'get',
    params: query
  })
}

// 地市统计分析
export function statisticsLevel(query) {
  return request({
    url: '/ord/statistics/prefecture/level',
    method: 'get',
    params: query
  })
}

// 培训产业销售排行榜
export function salesRankingList(query) {
  return request({
    url: 'ord/statistics/train/rank/user',
    method: 'get',
    params: query
  })
}
// 培训产业优秀团队排行榜
export function salesRankingDeptList(query) {
  return request({
    url: 'ord/statistics/train/rank/dept',
    method: 'get',
    params: query
  })
}
// 联系人/企业购买产品年度统计分析
export function buyProductList(query) {
  return request({
    url: 'ord/statistics/annual/customer/product',
    method: 'get',
    params: query
  })
}
// 年度产品销售统计分析
export function annualProductList(query) {
  return request({
    url: 'ord/statistics/annual/product',
    method: 'get',
    params: query
  })
}

// 培训业务分类
export function statisticsIndustry(query) {
  return request({
    url: '/ord/statistics/training/industry',
    method: 'get',
    params: query
  })
}

// 培训业务分类导出
export function statisticsExpire(query) {
  return request({
    url: '/ord/statistics/expire',
    method: 'get',
    params: query
  })
}
